<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of FormLogin
 *
 * @author tann
 */
class Application_Model_FormLogin extends Zend_Form {

    public function __construct($options = null) {
        parent::__construct($options);
        $this->setName('login');
        $this->setMethod('post');
        $this->setAction('/public/account/login');
        $email = new Zend_Form_Element_Text('email');
        $email->setAttrib('size', 35);
        $email->setRequired(true);
        $pswd = new Zend_Form_Element_Password('pswd');
        $pswd->setAttrib('size', 35);
        $pswd->setRequired(true);
        $submit = new Zend_Form_Element_Submit('submit');
        $this->setDecorators(array(array('ViewScript',
                array('viewScript' => '_form_login.phtml'))));
        $this->addElements(array($email, $pswd, $submit));
    }

}

?>
